<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-09-26 08:34:14, compiled from ../app/web/template/customer/orderlist.htm */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看客户数据</title>
<link href="style/base.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
.STYLE1 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style></head>
<?php include('../app/data/template_c/layout/header.tpl.php'); ?>
<body>
<?php include('../app/data/template_c/layout/sidebar.tpl.php'); ?>
<div class="stl_content">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td height="20" class="content_title">购买详细清单</td>
  </tr>
  <tr>
    <td height="20" bgcolor="#E7E7E7">
    <a href="<?php  echo initPHP::url('index|index|run');  ?>" >首页</a> ＞ 
    <a>查看客户数据</a> </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30">用户名：<span class="customer_info"><?php  echo $customer_info['account_name'];  ?></span>&nbsp;&nbsp;&nbsp;&nbsp;姓名：
    <span class="customer_info"><?php  echo $customer_info['name'];  ?></span>&nbsp;&nbsp;&nbsp;&nbsp;网站来源：
    <span class="customer_info"><?php  echo $customer_info['source'];  ?></span></td>
  </tr>
</table>
<table width="100%" border="0" cellpadding="6" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td width="30" bgcolor="#66FF66">序号</td>
    <td bgcolor="#66FF66">商品名称</td>
    <td bgcolor="#66FF66">单价（元）</td>
    <td bgcolor="#66FF66">数量</td>
    <td bgcolor="#66FF66">金额（元）</td>
    <td bgcolor="#66FF66">纯利润（元）</td>
    <td bgcolor="#66FF66">购买时间</td>
  </tr>
  <?php  foreach($purchase_data['purchase_data'] as $value){  ?>
  <tr>
    <td bgcolor="#FFFFFF"><?php  echo $value['id']  ?></td>
    <td bgcolor="#FFFFFF"><?php  echo $value['product_name']  ?></td>
    <td bgcolor="#FFFFFF"><?php  echo $value['price']  ?></td>
    <td bgcolor="#FFFFFF"><?php  echo $value['number']  ?></td>
    <td bgcolor="#FFFFFF"><?php  echo $value['money']  ?></td>
    <td bgcolor="#FFFFFF"><span class="STYLE1"><?php  echo $value['profit']  ?></span></td>
    <td bgcolor="#FFFFFF"><?php  echo $value['purchase_time']  ?></td>
  </tr>
  <?php  }  ?>

  <tr>
    <td colspan="3" bgcolor="#ECFFEC"><div align="right">总计：</div></td>
    <td bgcolor="#ECFFEC"><strong><?php  echo $purchase_data['totle_purchase_count']  ?></strong></td>
    <td bgcolor="#ECFFEC"><strong><?php  echo $purchase_data['totle_purchase_money']  ?></strong></td>
    <td colspan="2" bgcolor="#ECFFEC"><span class="STYLE1"><?php  echo $purchase_data['totle_purchase_profit']  ?></span></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30">总共<strong><?php  echo $purchase_data['count']  ?></strong>条记录，第
    <?php   for($i=1;$i<=$purchase_data['count']/PAGE_NUM+$purchase_data['count']%PAGE_NUM==0?0:1;$i++){    ?>
    <a href="<?php  $addurl['page']=$i; echo InitPHP::url('customer|orderlist|run',$addurl);  ?>"><strong><?php   echo $i;    ?></strong></a>
    <?php   if($i != ($purchase_data['count']/PAGE_NUM+$purchase_data['count']%PAGE_NUM==0?0:1)){    ?>
    &nbsp;&nbsp;&nbsp;&nbsp;
    <?php   } }    ?>
     页</td>
  </tr>
</table>
</div>
</body>
</html>
